package com.lianwei.hospital.mapper;

import com.lianwei.hospital.module.entity.Admain;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


public interface BaseMapper<E,V,D>{
    int deleteByPrimaryKey(Integer id) throws Exception;
    int insert(E row) throws Exception;
    E selectByPrimaryKey(Integer id) throws Exception;
    E findByUsername(String username);
    List<E> selectAll() throws Exception;
    int updateByPrimaryKey(E row) throws Exception;
    List<E> selectListBySelectActive(V query) throws Exception;
    int countBySelectActive(V query) throws Exception;
}
